<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>编辑留言</title>
	<script type="text/javascript" src="<%=basePath%>js/jquery-1.3.1.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/jquery.validate.js"></script>
	<script type="text/javascript" charset="UTF-8" src="<%=basePath%>js/messages_cn.js"></script>
	<script type="text/javascript">
			$(function() {
				$("#updateMessageForm").validate({
					rules:{
						"message.title":{
							required:true
						},
						"message.content":{
							required:true
						}
					}
				}) ;
			});
		</script>
  </head>
  
  <body topmargin="0" bgcolor="#D6DFF7" >
    <table width="100%" border="0" align="center" class="" bgcolor="#DEE5FA" >
         <tr>
			<td>&nbsp;</td>
		 </tr>
		<tr bgcolor="#799AE1" height="50" >
			<td colspan="2" align="center" style="font-size: 16px">
					<font color="#874B46" size="4pt">编辑留言信息</font>
			</td>
		</tr>
      <tr>
    <td align="center">
    <form action="MessageInfo!updateMessageInfo" method="post" id="updateMessageForm">
    <table width="80%" border="0" class="TABLELIST">
      <tr>
        <td width="30%" align="right" height="50" >
           <font color="#874B46" size="4pt">标题：</font>
        </td>
        <td align="left">
          <input name="message.title" type="text" size="40" style="width:200px; height:26px;" value="<s:property value="message.title"/>" />
          <input type="hidden" name="message.id" value="<s:property value="message.id"/>">
          <input type="hidden" name="message.createDate" value="<s:property value="message.createDate"/>">
          </td>
      </tr>
      <tr>
        <td width="30%" align="right" height="50">
        <font color="#874B46" size="4pt">内容：</font>
        </td>
        <td align="left" valign="top">
          <textarea name="message.content" cols="60" rows="10">
          	<s:property value="message.content"/>
          </textarea>
        </td>
      </tr>
      <tr>
        <td width="30%" align="right" height="50" >&nbsp;</td>
        <td align="left">
             <input type="submit" name="Submit" value="提交" /> 
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="Submit2" value="重置" />        </td>
      </tr>
    </table>
    </form>
    </td>
  </tr>
</table>
  </body>
</html>
